</div>
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row">
					<div class="col-md-12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
						<div class="portlet box blue">
							<div class="portlet-title">
								<div class="caption">
									<i class="fa fa-edit"></i>Roles Table
								</div>
								<div class="tools">
									<a href="javascript:;" class="collapse">
									</a>
									<a href="#portlet-config" data-toggle="modal" class="config">
									</a>
									<a href="javascript:;" class="reload">
									</a>
									<a href="javascript:;" class="remove">
									</a>
								</div>
							</div>
							<div class="portlet-body">
								<div class="table-toolbar">
									<div class="row">
										<div class="col-md-6">
											<div class="btn-group">
												<a href="<?php echo base_url().'index.php/admin/roles_ctrl/create_role';?>"><button id="sample_editable_1_new" class="btn green">
												Add New <i class="fa fa-plus"></i>
												</button></a>
											</div>
										</div>
										
									</div>
								</div>
								<table class="table table-striped table-hover table-bordered" id="sample_editable_1">
								<thead>
								<tr>
									<th>
										<?php echo anchor('admin/roles_ctrl/index/first_name/'.(($sort_order=='asc' && $order_by=='first_name')?'desc':'asc'),'Role Name');?>
									</th>
									<th>
										 Edit
									</th>
									<th>
										 Delete
									</th>
									<th>
										 <?php echo anchor('admin/roles_ctrl/index/created_date/'.(($sort_order=='asc' && $order_by=='created_date')?'desc':'asc'),'Date');?>
									</th>
									
								</tr>
								</thead>
								<tbody>
								<?php echo 'Total Records: '.$roles_all_roles->total;?>
								<?php //echo '<pre>';print_r($articles_get_authors);exit;?>
								<?php foreach($roles_all_roles->info as $role):?>
								<tr>
									<td>
										 <?php echo $role->first_name;?>
									</td>
									<td>
										<a class="edit" href="<?php echo base_url().'index.php/admin/roles_ctrl/edit_role/'.$role->role_id;?>">
										Edit </a>
									</td>
									<td>
										<a class="delete" href="<?php echo base_url().'index.php/admin/roles_ctrl/delete_role/'.$role->role_id.'/'.$role->status;?>">
										<?php if($role->status == 1){?>
										 Delete
										 <?php }else{ ?>
										 Active
										  <?php } ?></a>
									</td>
									<td>
										 <?php echo $role->created_date;?>
									</td>
									</tr>
								<?php endforeach;?>
								
							</table>
							<?php echo $pagination;?>
						<!-- END EXAMPLE TABLE PORTLET-->
					</div>
				</div>